<?php
// $Id$

/**
 * Controller_Admin_Orders 控制器
 */
class Controller_Admin_Orders extends Controller_Abstract
{

	function actionsendorders()
	{
		$orderid = isset($this->_context->orderid)?trim($this->_context->orderid):NULL;
			if (is_null($orderid))
			{
				return $this->error('错误的订单号');
			}else
			{
				$state = Orders::sendorders($orderid);
				if ($state === true)
				{
					return $this->success('状态更改成功,请确认已经发货');
				}else
				{
					return $this->error($state);
				}
			}
		
	}
	
	function actioncard()
	{
		$this->union_table = Orders::meta();
		$this->lists(array('type'=>0));
	}
	function actiononline()
	{
		
		$this->union_table = Orders::meta();
		$this->lists(array('type'=>2));
	}
	function actionpoint()
	{
		$this->union_table = Orders::meta();
		$this->lists(array('type'=>1));	
	}
	function actioncardsearch()
	{
		
	}
	function actiononlinesearch()
	{
	}
	function actionpointsearch()
	{
		
	}
	
}


